<?php

$uname=($_GET["username"]);
$pwd=($_GET["password"]);

/* echo $uname; */

$query_str="SELECT * FROM zjxtable where username='{$uname}' and password='{$pwd}';";

/* echo "<br> {$query_str} <br>";*/

$mysqli = new mysqli("127.0.0.1", "root", "zjx5301", "zjx_test");

/* check connection */
if ($mysqli->connect_errno) {
    printf("Connect failed: %s\n", $mysqli->connect_error);
    exit();
}
echo "Zealblog Connection success!";
/* Select queries return a resultset */
if ($result = $mysqli->multi_query($query_str)) {
    if ($result->num_rows > 0 ){
        echo "<br> Wellcome login Zealblog:{$uname} <br> ";
    } else {
        echo "<br> Wrong Username or Password! <br> " ;
    }

    /* free result set */
    $result->close();
}

$mysqli->close();

?>